arm64: dts: allwinner: a64: Add PWM controllers
authorAndre Przywara <andre.przywara@arm.com>
Wed, 6 Jun 2018 05:17:01 +0000 (22:17 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 7 Oct 2018 20:57:06 +0000 (21:57 +0100)
commit485ad762ff75df01f835f2c816f84720cce76e42
tree948bda44ba55e7b31bdacad8c657bf0a3b4b47b5
parent6c495e4a5973941be76870ce200a6a7a78f21f49
arm64: dts: allwinner: a64: Add PWM controllers

The Allwinner A64 SoC features two PWM controllers, which are fully
compatible to the one used in the A13 and H3 chips.

Add the nodes for the devices (one for the "normal" PWM, the other for
the one in the CPUS domain) and the pins their outputs are connected to.

On the A64 the "normal" PWM is muxed together with one of the MDIO pins
used to communicate with the Ethernet PHY, so it won't be usable on many
boards. But the Pinebook laptop uses this pin for controlling the LCD
backlight.

On Pine64 the CPUS PWM pin however is routed to the "RPi2" header,
at the same location as the PWM pin on the RaspberryPi.

Tested on Pinebook and Teres-I

[vasily: fixed comment message as requested by Stefan Bruens, added default
         muxing options to pwm and r_pwm nodes]

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Tested-by: Harald Geyer <harald@ccbib.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Gbp-Pq: Topic features/arm64/pinebook
Gbp-Pq: Name 0003-arm64-dts-allwinner-a64-Add-PWM-controllers.patch
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi